package com.qztc.hire_end_dto.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@TableName("hanfu_status")
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "汉服对应尺码状态信息")
public class HanFuStatus extends Model<HanFuStatus> implements Serializable {
    @Schema(title = "状态id")
    @TableId(value = "hanfu_statusid")
    private int hanfuStatusId;

    @Schema(title = "汉服id，外键")
    @TableField(value = "hanfu_id")
    private int hanfuId;

    @Schema(title = "汉服尺码id，外键")
    @TableField(value = "hanfu_sizeid")
    private int hanfuSizeId;

    @Schema(title = "该尺码可租数量")
    @TableField(value = "available_count")
    private int availableCount;

    @Schema(title = "该尺码已租数量")
    @TableField(value = "rented_count")
    private int rentedCount;

    @Schema(title = "该尺码维护数量")
    @TableField(value = "maintain_count")
    private int maintainCount;
}
